﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using Castle.MicroKernel.Registration;
using FluentValidation;
using Mammoth.Validations;
using Mammoth.ViewModels;

namespace Mammoth.Factories
{
    public class ViewModelInstaller : IWindsorInstaller
    {
        public void Install(Castle.Windsor.IWindsorContainer container, Castle.MicroKernel.SubSystems.Configuration.IConfigurationStore store)
        {
            container.Register(AllTypes.FromThisAssembly()
                .Where(Component.IsInSameNamespaceAs<AccountListViewModel>())
                .Configure(x => x.LifeStyle.Transient));
        }
    }
}
